import ElementPlus from 'element-plus'
import { defineClientConfig } from '@vuepress/client'
import 'element-plus/dist/index.css'

import MyPage from './layouts/MyPage.vue'
 
export default defineClientConfig({
    enhance({ app }) {
        if (!__VUEPRESS_SSR__) {
            import('element-plus/es/locale/lang/zh-cn').then(module => {
                app.use(ElementPlus, {
                    locale: module.default,
                })
            })
        }
    },
    layouts: {
        MyPage
    }
});